GVPT Maths Camp

Bringing it all together

Learning objectives

  1. Explore an interesting question using the skills you have learnt

  2. Create a script that you can use to explore new data sets in the future

Quarto

Quarto is a tool that helps you to create fully reproducible research outputs.

  • Allows combine your code, results, and prose in one document.

Quarto and RStudio

Source: Quarto

Create a new Quarto document

Rendering your Quarto document

Writing prose in Quarto

Source: Quarto

Code chunks

#| echo: true

library(tidyverse)

Chunk options

execute:
  echo: true
  message: false
  warning: false

In-line code

You include R code directly in your prose using the expression: r. For example:

Will render as: There are 234 observations in our data.


No need to go and update this reference if that number changes!

EXERCISE

  1. Create a plot of a categorical variable in your data set.
  2. Create a plot of a continuous variable in your data set.
  3. Create a plot showing the relationship between two continuous variables in your data set.
  4. Create a plot showing the relationship between a categorical and a continuous variable in your data set.
  5. Describe the relationship in simple, clear language.